package com.news.util;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;


public class DateConvert {
	static Date date;

	public static String str2str(String str) {
		String dateStr = str;
		Date date = new Date();
		
		
		
		return dateStr;

	}
	public static String s2s(String str) {
		String dateStr = str;
		SimpleDateFormat format = new SimpleDateFormat("d, dd M yyyy HH:mm:ss G");
		 String pubDate = "";
		 try {
		 Date beginDate= format.parse(dateStr);
		 SimpleDateFormat formatter = new SimpleDateFormat("hh:mm:ss");
		 pubDate = formatter.format(beginDate);
		 } catch (ParseException e) {
		 e.printStackTrace();
		 }
		return pubDate;
	}

}
